<?php if (!defined('THINK_PATH')) exit(); /*a:2:{s:54:"E:\WWW\pz\hsycmsdemo02/app/hsycms\view\index\home.html";i:1534474864;s:54:"E:\WWW\pz\hsycmsdemo02\app\hsycms\view\index\head.html";i:1533175385;}*/ ?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>HSYCMS后台管理系统</title>
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<link rel="stylesheet" href="/public/layui/css/layui.css?v=<?php echo time(); ?>" />
<link rel="stylesheet" type="text/css" href="/public/admin/css/touchTouch.css?v=<?php echo time(); ?>">
<link rel="stylesheet" href="/public/admin/css/admin.css?v=<?php echo time(); ?>" />
<script src="/public/admin/js/jquery.js?v=<?php echo time(); ?>"></script>
<script src='/public/tinymce/tinymce.min.js'></script>
<script src="/public/admin/js/validform5.3.2min.js"></script>
<script src="/public/layer//layer.js?v=<?php echo time(); ?>"></script>
<script src="/public/layui/layui.js?v=<?php echo time(); ?>"></script>
<script src="/public/admin/js/touchTouch.jquery.js"></script> 
<script src="/public/admin/js/admin.js?v=<?php echo time(); ?>"></script>
</head>
<body>

<div class="home">
  <div class="row-full">
    <div class="row-item">
      <h2><span>快捷导航</span></h2>
      <ul class="row-nav">
        <li><a href="<?php echo url('Site/info'); ?>" target="main">
          <p><span class="icon-gear (alias)"></span></p>
          <h3>网站信息</h3>
          </a> </li>
        <li><a href="<?php echo url('Site/nav'); ?>" target="main">
          <p><span class="icon-align-justify"></span></p>
          <h3>导航管理<em>(<?php echo $navCount; ?>)</em></h3>
          </a> </li>
        <?php if(PHP_VERSION < 7): ?>
        <li><a href="<?php echo url('Database/backup'); ?>" target="main">
          <p><span class="icon-database"></span></p>
          <h3>数据库管理<em>(<?php echo $tableCount; ?>)</em></h3>
          </a>
        </li>
        <?php endif; if(is_array($list) || $list instanceof \think\Collection || $list instanceof \think\Paginator): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
        <li> <a href="<?php echo url('Article/index',['nid'=>$v['id']]); ?>" target="main">
          <p><span class="<?php echo $v['icon']; ?>"></span></p>
          <h3><?php echo $v['title']; ?><em>(<?php echo getArticleCount($v['id']); ?>)</em></h3>
          </a> </li>
        <?php endforeach; endif; else: echo "" ;endif; ?>
         <li><a href="<?php echo url('Site/book'); ?>" target="main">
          <p><span class="icon-comments"></span></p>
          <h3>留言管理<em>(<?php echo $bookCount; ?>)</em></h3>
          </a>
        </li>        
      </ul>
    </div>
  </div>   
  <div class="row-full">
    <div class="row-item">
      <h2><span>程序信息</span></h2>
      <dl>
        <dd>程序名称：<span style="color:#0C9"> 后台管理系统 </span></dd>
        <dd><i class="icon-user"></i> 欢迎您，<span style="color:#0C9"><?php echo \think\Session::get('username'); ?> </span></dd>
        <dd><a href="<?php echo url('Rbac/adduser',['id'=>\think\Session::get('userid')]); ?>" class="btn"><i class="icon-key"></i> 修改密码</a> &nbsp;&nbsp;&nbsp;<a href="<?php echo url('Login/logout'); ?>" target="_blank" class="btn red"><i class="icon-sign-out"></i> 退出登录</a></dd>
        <dd>开发团队： <a href="http://www.hsycms.com" target="_blank" style="color:#0C9">好生意网络工作室</a></dd>                
      </dl>
    </div>
  </div>
  <div class="row-full">
    <div class="row-item">
      <h2>服务器环境</h2>
      <ul class="serverhj">
        <li><span>操作系统：</span><?php  echo PHP_OS;  ?></li>
        <li><span>运行环境：</span><?php  echo php_sapi_name();  ?></li>
        <li><span>Php版本：</span><?php  echo PHP_VERSION;  ?></li>
        <li><span>服务器域名：</span><?php  echo $_SERVER['SERVER_NAME'];  ?></li>
        <li><span>服务器Ip：</span><?php  echo $_SERVER['SERVER_ADDR'];  ?></li>
        <li><span>网站端口：</span><?php  echo $_SERVER['SERVER_PORT'];  ?></li>
        <li><span>运行内存：</span><?php  echo get_cfg_var ("memory_limit")?get_cfg_var("memory_limit"):"无";  ?></li>
        <li><span>上传限制：</span><?php  echo get_cfg_var ("upload_max_filesize")?get_cfg_var ("upload_max_filesize"):"不允许";  ?></li>        
        <li><span>当前时间：</span><?php  echo date("Y-m-d H:i:s");  ?></li>       
        <li><span>程序版本：</span>Hsycms <?php  echo HSYCMS_VERSION  ?></li>
      </ul>
    </div>
  </div>
</div>
